package edu.yourl.persistence;

public class QueryTandem {

	private String propertyName;
	private Object expectedValue;
	
	public QueryTandem(String propertyName, Object expectedValue) {
		this.propertyName = propertyName;
		this.expectedValue = expectedValue;
	}
	
	public QueryTandem(String[] array) {
		if (array.length != 2) {
			throw new IllegalArgumentException("Debe faltar o sobrar un elemento en el array. Chequealo.");
		}
		this.propertyName = array[0];
		this.expectedValue = array[1];
		
	}

	public String getPropertyName() {
		return propertyName;
	}

	public Object getExpectedValue() {
		return expectedValue;
	}
	
	
}
